<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model common\models\meeting\Meetingenroll */

$this->title = $model->name;
$this->params['breadcrumbs'][] = ['label' => Yii::t('app', '报名列表')];
$this->params['breadcrumbs'][] = $this->title;
?>
<?php $this->beginBlock('siderbar'); ?>
<?= $this->render('//layouts/cms-menu') ?>
<?php $this->endBlock(); ?>
<div class="meetingenroll-view">

    <p>
        <?= Html::a(Yii::t('app', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a(Yii::t('app', 'Delete'), ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'),
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'name',
            'sex',
            'phone',
            'email:email',
            'company',
            'address',
            'label_img',
			[
				'attribute' => 'created_at',
				'format' => ['date', 'php:Y-m-d H:i:s'],
			]
            //'created_at:date',
        ],
    ]) ?>

</div>
